package main;

import bean.StudentInfo;
import controller.StudentInfoController;

import java.util.List;

public class RunUI {

    public static void main(String[] args) throws Exception{
        StudentInfoController studentInfoController=new StudentInfoController();

        List<StudentInfo> studentInfoList = studentInfoController.queryStudentInfo();

        for (StudentInfo studentInfo: studentInfoList) {
            System.out.println(studentInfo.getId()+"  "+ studentInfo.getName()+"  "+studentInfo.getAge());
        }

        StudentInfo studentInfo=new StudentInfo();

        studentInfo.setId(14);
        studentInfo.setName("测试修改");
        studentInfo.setAge(333);

        studentInfoController.insertStudentInfo(studentInfo);
        //studentInfoController.updateStudentInfo(studentInfo);

        //studentInfoController.deleteStudentInfo(14);


    }

}
